package cn.smbms.service.impl;

import cn.smbms.beans.Bill;
import cn.smbms.dao.BillDao;
import cn.smbms.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Version 1.0
 * @Author:陈慧杰
 * @Date:2021/11/29
 */
@Service("billService")
public class BillServiceImpl  implements BillService {
    @Autowired
    private BillDao  billDao;


    @Override
    public List<Bill> getBillList(Bill bill) {
        List<Bill> billList = billDao.getBillList(bill);
        return  billList;
    }

    @Override
    public void AddBill(Bill bill) {
        billDao.addBill(bill);
    }

    @Override
    public void deleteBill(Bill bill) {
        billDao.deleteBill(bill);
    }

    @Override
    public void updateBill(Bill bill) {
        billDao.updateBill(bill);
    }
}
